//
// Created by cheng on 2021/03/10.
//

#include "Heap.h"
#include <iostream>
using namespace std;

int main() {
    int len = 10;
    int arr[10] = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};
    auto heap = new Heap<int>(arr, len);
    auto maxHeap = Heap<int>::MaxHeap(*heap);
    auto minHeap = Heap<int>::MinHeap(*heap);

    maxHeap->PrintData("最大堆");
    minHeap->PrintData("最小堆");
    delete heap;
    delete maxHeap;
    delete minHeap;
}